package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceContaCapitalDAO;
import br.org.credfaz.sis.modelo.TceContaCapital;

public class AtualizaTceContaCapitalAction {
	
private List<TceContaCapital> ccapital;
	
	@Action(value="atualizaCcapital", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaCc"})
	})
	public String execute(){
		ccapital = new TceContaCapitalDAO().lista();
		return "ok";
	}
	public List<TceContaCapital> getTceContaCapital(){
		return ccapital;
	}

}
